#ifndef MemBuf_First
#define MemBuf_First
#ifdef __GNUG__
#pragma interface
#endif

#include "StreamBuf.h"

//---- MemBuf ------------------------------------------------------------------

class MemBuf: public StreamBuf {
public:
	MemBuf(int size= BUFSIZE, char *p= 0, int count= 0, bool alloc= FALSE);
	int overflow(int c);
	void SwitchToRead();
	long ContentsSize();
};

#endif


